package org.timeismoney.payment.service.impl;

import java.util.List;

import org.timeismoney.payment.model.Teacher;
import org.timeismoney.payment.service.TeacherService;

public class TeacherServiceImpl extends BaseServiceImpl<Teacher, Integer>
		implements TeacherService {

	public Teacher validate(String loginid, String pwd) {
		Teacher t = new Teacher();
		t.setLoginid(loginid.trim());
		t.setPwd(pwd);
		List<Teacher> teachers = getDao().findByExample(t);
		if(teachers!=null&&teachers.size()>0){
			return teachers.get(0);
		}
		return null;
	}

}
